import axios from "@/api/http";

export const login = (params = {}) => axios.post("/v1/users/login", params);//登录
export const register = (params = {}) => axios.post("/v1/users/register", params);//注册
export const userInfo = (params = {}) => axios.post("/users", params);//用户信息
export const teacherList = (params = {}) => axios.post("/teachers", params);//教师列表
export const curriculumList=(params={})=>axios.get("/v1/curriculum",{params});//课程列表
export const addCurriculum=(params={})=>axios.post("/v1/curriculum",params);//添加课程
export const classes=(params={})=>axios.get("/v1/classes",{params});//班级列表
export const addClasses=(params={})=>axios.post("/v1/classes",params);//添加班级
export const users=(params={})=>axios.get("/v1/users",{params});//账号列表
export const addUsers=(params={})=>axios.post("/v1/users",params);//账号班级